#扫描端口状态
host=$1
post="22 55 80 8080"
for post in $post
do
	if echo &>/dev/null > /dev/tcp/$host/$post;then
	echo "$post open"
	else
	echo "$post close"
	fi
done
